package com.beamfield.dao.material;

import com.beamfield.model.RebarInbound;
import com.beamfield.model.RebarInboundExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface RebarInboundMapper {
    int deleteByPrimaryKey(Long rebar_inbound_id);

    int insert(RebarInbound record);

    int insertSelective(RebarInbound record);

    List<RebarInbound> selectByExample(RebarInboundExample example);

    RebarInbound selectByPrimaryKey(Long rebar_inbound_id);

    int updateByPrimaryKeySelective(RebarInbound record);

    int updateByPrimaryKey(RebarInbound record);

    List<RebarInbound>  selectByInboundId(@Param("offset") Integer offset, @Param("limit") Integer limit, @Param("inboundId") Long inbound_id,@Param("status") String status);

    int updateState(@Param("list") List<String> rebarInboundIdList, @Param("state") String state);

    Long countByInboundId(@Param("inboundId") Long inbound_id);

    int deleteByInboundId(@Param("inboundId") Long inboundId);
}
